package org.zdc.zui;
import browser.display.Graphics;
import jeash.events.IEventDispatcher;
import org.zdc.zui.skin.ISkin;

interface IComponent implements IConstraintedVisual,
					 implements IEventDispatcher
{
	/**
	 * 组件id
	 */
	public function get id():Int;
	public function set id(value:Int):Void;
	
	/**
	 * 组件名称
	 */
	public function get name():String;
	public function set name(value:String):Void;
	
	/**
	 * 安装皮肤
	 * @param	skin
	 */
	public function installSkin(skin:ISkin):Void;
	
	/**
	 * 卸载皮肤
	 * @param	skin
	 */
	public function uninstallSkin(skin:ISkin):Void;
	
	/**
	 * 绘图对象
	 * @return
	 */
	public function graphics():Graphics;
}